﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:local="clr-namespace:ArchX.Controls.Layers">

	<Style x:Key="{x:Type local:EditableTextBlock}" TargetType="{x:Type local:EditableTextBlock}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:EditableTextBlock}">
					<Grid>
						<TextBlock x:Name="PART_Text" Text="{TemplateBinding Content}" TextTrimming="CharacterEllipsis"/>
						<TextBox x:Name="PART_Edit" Visibility="Collapsed" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>